"use client";

import { StyleSheet, View } from "react-native";
import { Link  } from "expo-router";

export default function NotFound() {
  return (
    <View style={styles.container}>
      <View >404</View>
      <View className="text-xl">页面未找到</View>
      <View className="text-gray-500">抱歉，您访问的页面不存在</View>
      <Link href="/"   style={styles.button} >返回首页</Link>
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: "#fff",
    display: "flex", // Add this line to make it a flex container
    flexDirection: "column", // Add this line to stack children vertically
    alignItems: "center",
    justifyContent: "flex-start",   
  },
  button: {
    marginTop: 20,
    padding: 10,
    backgroundColor: "#007bff",
    color: "#fff",
    borderRadius: 5,
  }
});
